package com.wdz.article_comment.service.impl;

import com.wdz.article_comment.entity.ArticleComment;
import com.wdz.article_comment.mapper.ArticleCommentMapper;
import com.wdz.article_comment.service.IArticleCommentService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 文章评论表 服务实现类
 * </p>
 *
 * @author 吴传逞
 * @since 2020-12-29
 */
@Service("ArticleCommentServiceImpl")
public class ArticleCommentServiceImpl extends ServiceImpl<ArticleCommentMapper, ArticleComment> implements IArticleCommentService {

    @Override
    public List<ArticleComment> selectWhooseByMainId(String id) {
        return this.baseMapper.selectWhooseByMainId(id);
    }

    @Override
    public List<ArticleComment> selectWhooseByCategoryId(String id) {
        return this.baseMapper.selectWhooseByCategoryId(id);
    }
}
